package cn.bugstack.types.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Getter
public enum ResponseCode {

    SUCCESS("0000", "成功"),
    UN_ERROR("0001", "未知失败"),
    ILLEGAL_PARAMETER("0002", "非法参数"),
    ELLEGAL_MARKETPLAN("0003","不存在对应的服务"),
    NULL_GROUP_BUY_DISCOUT("0004","无拼团营销配置"),
    HTTP_EXCEPTION("0005", "HTTP接口调用异常"),

    GRADE_DOWN("0005","拼团活动降级拦截"),
    CUT_RANGE("0006","拼团活动切量拦截"),
    UPDATECOUNT_ZERO("0007","拼团组队失败，更新记录为0"),
    LOCKCOUNT_COMPLETE("0008","拼团组队完结，锁单量已经完成"),
    INDEX_EXCEPTION("0009","唯一索引冲突"),

    ACTIVITY_NOT_EFFECTIVE("0010", "拼团活动未生效"),
    ACTIVITY_TIME_NOT_VALID("0011","不在拼团活动有效时间内"),
    ACTIVITY_USER_TKAE_TOO_MUCH("0011","当前用户参与次拼团活动次数已经达到上线"),
    ACTIVITY_NOT_FOR_GROUP_TYPE("0012","拼团人群限定，不可参与"),

    E0104("E0104", "不存在的外部交易单号或用户已退单"),
    E0105("E0105", "SC渠道黑名单拦截"),
    E0106("E0106", "订单交易时间不在拼团有效时间范围内"),

    UPDATE_ZERO("0013","更新记录为0")


    ;

    private String code;
    private String info;

}
